package com.zhanggm.springcloud.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 车辆维修记录表
 * </p>
 *
 * @author zhanggm
 * @since 2020-12-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_car_repair_record")
public class CarRepairRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 车辆Id
     */
    private Integer carId;

    @TableField(exist = false)
    private String carName;

    /**
     * 送修人Id
     */
    private Integer personId;
    /**
     * 送修人姓名
     */
    @TableField(exist = false)
    private String personName;

    /**
     * 修理厂id
     */
    private Integer shopId;

    @TableField(exist = false)
    private String shopName;

    /**
     * 维修内容
     */
    private String content;

    /**
     * 维修价格
     */
    private Double price;

    /**
     * 送修时间
     */
    private LocalDate createTime;

    /**
     * 返回时间
     */
    private LocalDate endtime;

    /**
     * 维修状态,1：送修；2：取回
     */
    private Integer status;

    /**
     * 备注
     */
    private String note;


}
